//
//  ViewController.m
//  SBPageController
//
//  Created by 刘 真 on 7/19/16.
//  Copyright © 2016 leeszi. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSLog(@"%@:%@, idx:%ld", self, NSStringFromSelector(_cmd), (long)self.idx);
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    NSLog(@"%@:%@, idx:%ld", self, NSStringFromSelector(_cmd), (long)self.idx);
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    NSLog(@"%@:%@, idx:%ld", self, NSStringFromSelector(_cmd), (long)self.idx);
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    NSLog(@"%@:%@, idx:%ld", self, NSStringFromSelector(_cmd), (long)self.idx);
}

- (void)viewDidDisappear:(BOOL)animated {
    [super viewDidDisappear:animated];
    NSLog(@"%@:%@, idx:%ld", self, NSStringFromSelector(_cmd), (long)self.idx);
}

- (NSString *)description {
    return [[super description] stringByAppendingFormat:@"idx is %ld", (long)self.idx];
}

@end
